<nav class="sidebar-main">
  {eq name="$loginInfo['account_type']" value="1"}
  <ul class="nav nav-drawer">
    <li class="nav-item active">
      <a class="multitabs" href="/system/index/main.html"><i class="mdi mdi-home"></i> <span>后台首页</span></a>
    </li>
    {if $auth->check('内容管理',$loginInfo['uid'])}
    <li class="nav-item nav-item-has-subnav">
      <a href="javascript:void(0)"><i class="mdi mdi-file-document"></i> <span>内容管理</span></a>
      <ul class="nav nav-subnav">
        {if $auth->check('/system/cms.class/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/cms.class/index.html"><i class="mdi mdi-content-duplicate"></i> 内容分类</a></li>
        {/if}
        {if $auth->check('/system/cms.detail/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/cms.detail/index.html"><i class="mdi mdi-file-cloud"></i> 内容列表</a></li>
        {/if}
        {if $auth->check('/system/cms.table/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/cms.table/index.html"><i class="mdi mdi-database"></i> 模型管理</a></li>
        {/if}
      </ul>
    </li>
    {/if}
    {if $auth->check('账户管理',$loginInfo['uid'])}
    <li class="nav-item nav-item-has-subnav">
      <a href="javascript:void(0)"><i class="mdi mdi-account"></i> <span>账户管理</span></a>
      <ul class="nav nav-subnav">
        {if $auth->check('/system/admin/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/admin/index.html"><i class="mdi mdi-account-box"></i> 账户管理</a></li>
        {/if}
      </ul>
    </li>
    {/if}
    {if $auth->check('系统设置',$loginInfo['uid'])}
    <li class="nav-item nav-item-has-subnav">
      <a href="javascript:void(0)"><i class="mdi mdi-settings"></i> <span>系统设置</span></a>
      <ul class="nav nav-subnav">
        <li><a class="multitabs" href="/system/message/index.html"><i class="mdi mdi-cart"></i> 留言信息</a></li>
        {if $auth->check('/system/config/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/config/index.html"><i class="mdi mdi-settings-box"></i> 基础设置</a></li>
        {/if}
        {if $auth->check('/system/dict/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/dict/index.html"><i class="mdi mdi-dictionary"></i> 数据字典</a></li>
        {/if}
        {if $auth->check('/system/patch/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/patch/index.html"><i class="mdi mdi-package"></i> 碎片管理</a></li>
        {/if}
        {if $auth->check('/system/attachment/index.html',$loginInfo['uid'])}
        <li><a class="multitabs" href="/system/attachment/index.html"><i class="mdi mdi-folder-image"></i> 附件资源</a></li>
        {/if}
      </ul>
    </li>
    {/if}
  </ul>
  {else/}
  <ul class="nav nav-drawer">
    <li class="nav-item active">
      <a class="multitabs" href="/system/index/main.html"><i class="mdi mdi-home"></i> <span>后台首页</span></a>
    </li>
    <li><a class="multitabs" href="/system/live.room/add.html"><i class="mdi mdi-film"></i> 创建直播</a></li>
    <li><a class="multitabs" href="/system/live.room/index.html"><i class="mdi mdi-filmstrip"></i> 直播管理</a></li>
    <li><a class="multitabs" href="/system/live.mall/index.html"><i class="mdi mdi-cart"></i> 橱窗店铺</a></li>
    {if $auth->check('/system/live.water/index.html',$loginInfo['uid'])}
    <li><a class="multitabs" href="/system/live.water/index.html"><i class="mdi mdi-watermark"></i> 直播水印</a></li>
    {/if}
    {if $loginInfo['account_type']==2 && $auth->check('/system/admin/index.html',$loginInfo['uid'])}
    <li><a class="multitabs" href="/system/admin/index.html"><i class="mdi mdi-account-box"></i> 账户管理</a></li>
    {/if}
  </ul>
  {/eq}
</nav>